package avicit.bdp.dds.dao.entity;

import avicit.bdp.common.base.BaseDTO;
import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.Id;
import avicit.platform6.core.annotation.log.LogField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * DS目录监控任务实体类(bdp_monitor_directory_task)
 */
@ApiModel(value = "MonitorDirectoryTask", description = "bdp_monitor_directory_task")
@Table(name = "bdp_monitor_directory_task")
public class MonitorDirectoryTask extends BaseDTO {

    /**
     * id
     */
    @Id
    @javax.persistence.Id
    @Column(name = "id")
    private String id;

    /**
     * 流程定义ID
     */
    @LogField
    @ApiModelProperty(value = "流程定义ID", name = "processDefinitionId")
    @FieldRemark(column = "process_definition_id", field = "processDefinitionId", name = "流程定义ID")
    @Column(name = "process_definition_id")
    private String processDefinitionId;

    /**
     * 最后执行时间
     */
    @LogField
    @ApiModelProperty(value = "最后执行时间", name = "lastDate")
    @FieldRemark(column = "last_date", field = "lastDate", name = "最后执行时间")
    @Column(name = "last_date")
    private Date lastDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProcessDefinitionId() {
        return processDefinitionId;
    }

    public void setProcessDefinitionId(String processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
    }

    public Date getLastDate() {
        return lastDate;
    }

    public void setLastDate(Date lastDate) {
        this.lastDate = lastDate;
    }
}
